import request from '@/utils/request'

// 查询资金账号列表
export function listAssetaccount(query) {
  return request({
    url: '/business/assetaccount/list',
    method: 'get',
    params: query
  })
}

// 查询资金账号详细
export function getAssetaccount(id) {
  return request({
    url: '/business/assetaccount/' + id,
    method: 'get'
  })
}

// 新增资金账号
export function addAssetaccount(data) {
  return request({
    url: '/business/assetaccount',
    method: 'post',
    data: data
  })
}

// 修改资金账号
export function updateAssetaccount(data) {
  return request({
    url: '/business/assetaccount',
    method: 'put',
    data: data
  })
}

// 删除资金账号
export function delAssetaccount(id) {
  return request({
    url: '/business/assetaccount/' + id,
    method: 'delete'
  })
}
